package com.cake.liulanxiangzhu.service;

import com.cake.liulanxiangzhu.pojo.dto.AdminAlbumDTO;
import com.cake.liulanxiangzhu.pojo.dto.AdminAlbumInsertDTO;
import com.cake.liulanxiangzhu.pojo.entity.AdminAlbum;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cake.liulanxiangzhu.pojo.vo.AdminAlbumVO;
import com.cake.liulanxiangzhu.web.JsonPage;

import java.util.List;

/**
* @author Administrator
* @description 针对表【admin_album(相册)】的数据库操作Service
* @createDate 2023-01-20 20:54:40
*/
public interface AdminAlbumService extends IService<AdminAlbum> {
    /**
     @Description: 增加相册
     @Param: [adminAlbumInsertDTO]
     @return: void
     @Author: ManolinCoder
     @Date: 2023/1/20
     */
    void addNew(AdminAlbumInsertDTO adminAlbumInsertDTO);

    /**
     @Description: 删除相册
     @Param: [id]
     @return: void
     @Author: ManolinCoder
     @Date: 2023/1/20
     */
    void deleteById(Integer id );

    /**
     @Description: 修改相册
     @Param: [adminAlbumDTO]
     @return: void
     @Author: ManolinCoder
     @Date: 2023/1/20
     */
    void updateById(AdminAlbumDTO adminAlbumDTO);

    /**
     @Description: 分页查询所有相册信息
     @Param: []
     @return: JsonPage<List<AdminAlbumVO>>
     @Author: ManolinCoder
     @Date: 2023/1/20
     */
    JsonPage<AdminAlbumVO> selectAllAlbums(Integer page, Integer pageSize );

    /**
     @Description: 根据id查询相册信息
     @Param: [id]
     @return: AdminAlbumVO
     @Author: ManolinCoder
     @Date: 2023/1/20
     */
    AdminAlbumVO setByAlbumId(Integer id );


    /**
     @Description: 查询所有相册信息
     @Param: []
     @return: List<AdminAlbumVO>
     @Author: ManolinCoder
     @Date: 2023/1/20
     */
    List<AdminAlbumVO> listAll();



}
